﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CYP.IISMonitor.Utility.SMS
{
    /// <summary>
    /// 扩展号码
    /// </summary>
    public class MsgExtension
    {
        #region 掌上通属性
        private string uid;
        private string pwd;
        private string extZst;
        #endregion

        #region 漫道属性
        private string extMd;
        #endregion

        #region 属性
        public string Uid
        {
            get { return uid; }
            set { uid = value; }
        }

        public string Pwd
        {
            get { return pwd; }
            set { pwd = value; }
        }

        public string ExtMd
        {
            get { return extMd; }
            set { extMd = value; }
        }

        public string ExtZst
        {
            get { return extZst; }
            set { extZst = value; }
        }

        #endregion

        #region 初始化

        /// <summary>
        /// 初始化 
        /// </summary>
        public MsgExtension Init(MSGTYPE msgType)
        {
            ////Id	MsgTypeId	MsgTypeName	ZstUserName	ZstPwd	ZstExt	MdExt	Created
            ////1	21	交易成功	xxxxxx	df1238	4	4	2013-07-08 10:31:33.077
            ////2	22	交易日报	xxxxxx	df1238	3	3	2013-07-08 10:31:38.603
            //MsgExtension extension = extension = MsgSettingCache.GetExtensionSettings(msgType);

            MsgExtension extension = new MsgExtension();
            switch (msgType)
            {
                case MSGTYPE.JiaoYiChengGong:
                    extension = new MsgExtension() { uid = "xxxxxx", pwd = "xxxxxx", extMd = "01", extZst = "01" };
                    //Uid = "101050004";
                    //Pwd = "df1238";
                    //Ext = "1";
                    break;
                case MSGTYPE.JiaoYiRiBao:
                    extension = new MsgExtension() { uid = "xxxxxx", pwd = "xxxxxx", extMd = "02", extZst = "02" };
                    //Uid = "101050003";
                    //Pwd = "df1238";
                    //Ext = "2";
                    break;
                default:
                    extension = new MsgExtension() { uid = "xxxxxx", pwd = "xxxxxx", extMd = "" };
                    //Uid = "101050";
                    //Pwd = "df1238";
                    //Ext = "";
                    break;
            }

            return extension;
        }

        #endregion
    }
}
